#pragma once

#include "gshader.h"

enum program_type
{
	vertex_only,
	vertex_and_fragment,
	fragment_only
};

class CGProgram
{
public:
	GLhandleARB		pProgram;
	CGShader*		pVertexShader;
	CGShader*		pFragmentShader;

public:
	CGProgram();
	~CGProgram(void);
	bool Create(const std::string& szProgram, program_type nType = fragment_only);
	void On(void);
	void Off(void);
};
